﻿<%@ Page Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="ShoppingCart.aspx.cs" 
    Inherits="ShoppingCart" Title="Đặt hàng" %>
<%@ Import Namespace="DTO" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="title">Thông tin đặt hàng</div>
<div class="body"> 
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
    <ContentTemplate> 
<table width="100%" >
    <tr>
        <td style="text-align:right;">
            Sản phẩm
        </td>
        <td>
            <asp:Label runat="server" ID="lblTitle"/>
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <asp:Image runat="server" ID="Image" />
        </td>
    </tr>    
    <tr>
        <td style="text-align:right;"></td>
        <td valign="bottom">
            <%--<asp:Label runat="server" ID="lblGia" ForeColor="Red"/>--%>
            <asp:Panel ID="Panel1" runat="server">
                <s>Giá : <asp:Label runat="server" ID="lblGiaGoc" ForeColor="Red" Text='<%#Eval("StringUnitPrice")%>' /></s><br />
                Giảm : <asp:Label runat="server" ID="lblGiamgia" ForeColor="Red" Text='<%#Eval("DiscountPercentage")+"%"%>' /><br />
                Giá khuyến mãi : <asp:Label runat="server" ID="lblGiaKM" ForeColor="Red" Text='<%#Eval("StringFinalUnitPrice")%>' />
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                Giá : <asp:Label runat="server" ID="lblGia" ForeColor="Red" Text='<%#Eval("StringFinalUnitPrice")%>' /><br />
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">Số lượng</td>
        <td valign="bottom">
            <asp:DropDownList runat="server" ID="ddlNumber" AutoPostBack="true" Width="40px" OnSelectedIndexChanged="ddlNumber_OnSelectedIndexChanged">
                <asp:ListItem Text="1" Value="1" Selected="True"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>
                <asp:ListItem Text="5" Value="5"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>

    <tr>
        <td style="text-align:right;">Thành tiền</td>
        <td valign="bottom">
            <asp:Label runat="server" ID="lblTotal" ForeColor="Red"/>
        </td>
    </tr>
  
    <tr>
        <td colspan="2">
            <asp:Label runat="server" ID="lblthongtin" Text="Thông tin đặt hàng" ForeColor="Red" Font-Bold="true" Font-Size="15px" />
        </td>        
    </tr>
    <tr>
        <td style="text-align:right;">
            Họ và tên
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtName" Width="300"/>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">
            Số điện thoại
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtPhone" Width="300"/>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">
            Email
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtEmail" Width="300"/>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">
            Ghi chú
        </td>
        <td>
            <asp:TextBox runat="server" ID="txtGhichu" Text="" TextMode="MultiLine" Rows="3" Width="300"/>
        </td>
    </tr>
</table>
    </ContentTemplate>             
</asp:UpdatePanel>
<table width="100%">
    <tr>
        <td style="100%" align="center">
            <asp:Button runat="server" ID="txtDatHang" onclick="txtDatHang_Click" Text="Đặt hàng" />
            <asp:Button runat="server" ID="txtTT" onclick="txtTT_Click" Text="Tiếp tục mua hàng" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label runat="server" id="lblThongbao" ForeColor="Red" Visible="false" Font-Size="15px" Text="Thông tin đặt hàng của quý đã được chúng tôi tiếp nhận, chúng tôi sẽ liên hệ với quý khách trong thời gian sớm nhất. Xin cảm ơn" />
        </td>        
    </tr>
</table>
</div> 
<div class="bottom"></div>
</asp:Content>
